package com.example.kt_temp.model.service

import com.example.kt_temp.model.Network
import com.example.kt_temp.model.entity.ArticleListResponse
import com.example.kt_temp.model.entity.SwiperResponse
import com.example.kt_temp.model.entity.VideoInfoResponse
import com.example.kt_temp.model.entity.VideoListResponse
import retrofit2.http.GET
import retrofit2.http.Headers
import retrofit2.http.Query

interface VideoService {

    @GET("video/list")
    suspend fun list(@Query("pageOffset") pageOffset:Int, @Query("pageSize") pageSize:Int): VideoListResponse

    @GET("video/info")
    suspend fun info(@Query("id") id:String): VideoInfoResponse

    companion object{
        fun instance():VideoService{
            return Network.createService(VideoService::class.java)
        }
    }
}